package com.bolingcavalry.crm.taskorder.service;/*
 * @Auther:Sadie
 * @Date:2025/5/6
 * @Description:
 * @VERSON:1.8
 */

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.base.ResponseResult;
import com.dto.TaskOrderDTO;
import com.vo.TaskOrderVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface TaskorderService {
    boolean add(TaskOrderDTO taskOrderDTO);

    TaskOrderVO getById(Long id);

    void generateExcel(Long id) throws Exception;

    void generateExcel(Long id, HttpServletResponse response);

    ResponseResult update(TaskOrderDTO taskOrderDTO);

    IPage<TaskOrderVO> getByPage(int pageNum, int pageSize, String customerName, String technicalManagerName, String receiverName,String businessManagerName, String taskOrderNumber, String startDate, String endDate, String status);

    boolean batchDelete(List<Long> ids);

    TaskOrderVO updateByImage(MultipartFile image) throws Exception;

    TaskOrderVO getByOrderNumber(String orderNumber);

    ResponseResult updateStatus(Long id, String status);
}
